package com.guavestudios.fnfo.plugins {
	import com.guavestudios.fnfo.plugins.BasicFnfoPlugin;
	import flash.display.LoaderInfo;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author maze
	 */
	public class FlashFileParametersInfo extends BasicFnfoPlugin{
		
		public function FlashFileParametersInfo() {
			super();
			_pluginId = "FlashFileParametersInfo";
			
		}
		
		override protected function fnfo_gatherData(e:Event):void {
			super.fnfo_display_data(e);
			var li:LoaderInfo = _fnfo.container.stage.loaderInfo;
			printInfo("LoadUrl", li.url);
			try { printInfo("SwfVersion", _fnfo.container.loaderInfo.swfVersion.toString());} catch (e:Error) {}
			printInfo("BytesTotal", li.bytesTotal.toString());
			var pars:Object = li.parameters;
			for (var i:String in pars) {
				printInfo("StageParam", i+" = "+pars[i]);
			}
			
		}
	}

}